package com.appbase.custom.base;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Describe:
 * Created by Rance Rang on 2019-10-24.
 * <p>
 * Copyright (c) Tange.Inc All rights reserved.
 */
public class TemperatureHumiditySettingBean implements Parcelable {
    public   int sensor_id;
    public  int lo_limit;
    public  int hi_limit;
    public  int lo_en;
    public  int hi_en;
    public int lo_threshold;
    public int hi_threshold;

    public TemperatureHumiditySettingBean() {

    }

    public TemperatureHumiditySettingBean(Parcel in) {
        sensor_id = in.readInt();
        lo_limit = in.readInt();
        hi_limit = in.readInt();
        lo_en = in.readInt();
        hi_en = in.readInt();
        lo_threshold = in.readInt();
        hi_threshold = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(sensor_id);
        dest.writeInt(lo_limit);
        dest.writeInt(hi_limit);
        dest.writeInt(lo_en);
        dest.writeInt(hi_en);
        dest.writeInt(lo_threshold);
        dest.writeInt(hi_threshold);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<TemperatureHumiditySettingBean> CREATOR = new Creator<TemperatureHumiditySettingBean>() {
        @Override
        public TemperatureHumiditySettingBean createFromParcel(Parcel in) {
            return new TemperatureHumiditySettingBean(in);
        }

        @Override
        public TemperatureHumiditySettingBean[] newArray(int size) {
            return new TemperatureHumiditySettingBean[size];
        }
    };
}
